
{%include file="header.html" %}  

<div class="break"></div>

<div class="warp manage_page">

{%include file="user/user_manage_menu.html" menu='weibo_manage' menu_detail='user_rt_view' %} 


<div class="manage_body">
<form id="form1">
<div class="manage_body_content ">

	<h3>添加微博</h3>
	<div class="user_edit_body info_tab01">
	<table>
    <tbody>
  

		<tr>
		<td>* 微博地址：</td><td>
		<input type=text value="" name="mblog" id="mblog"  size=50/>
		</td>
			<td id="red_realname"
			</td>
		</tr>
		<tr>
		<td></td><td>
		例子（需原创）： http://weibo.com/1737886622/ypWGCdooX
		</td>
			<td id="red_realname">
			</td>
		</tr>	

   <tr>
    <th></th>
    <td><div class="MIB_btn">  <input type="button" value="保存" id="save_btn" class="u_bnt upload_submit"> </div></td>
    <td></td>
   </tr>
  
   
   
    </tbody></table>


</div>
</div>
</form>
<div class="break"></div>




<script src ="/js/common/user_message.js"></script>
<script type="text/javascript" language="javascript">

YOUXIXIU.MAIN.CheckMessage.init();


$("#province").find("option[value='{%$g_show.current_user_info.province%}']").attr("selected",true);
$(".sex[value='{%$g_show.current_user_info.sex%}']").attr("checked","checked");

$("#save_btn").bind("click",function(){

	$.ajax({
		url:"/interface/user/json_mblog_user_rt_edit.php?type=add",
		type:"post",
		data:$("#form1").serialize(),
		dataType:"json",
    complete:function(xhr,status){
      var result = eval("("+(xhr.responseText)+")");
			
			if(result.error == "0"){
				alert("成功");
				location.href="user_rt_view.php";                   
			}else{
				var errmsg = result.errmsg;
				alert(errmsg)
			}

			widget = null;
		}
	});
});

</script>



</div>
</div>


{%include file="footer.html" %}  

